<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
  <header>
<!--    <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />-->
<!--    <div class="wrapper">-->
<!--      <HelloWorld msg="You did it!" />-->
      <nav>
        <RouterLink to="/">Home</RouterLink>
        <RouterLink to="/about">About</RouterLink>
        <RouterLink to="/test">Test</RouterLink>
        <RouterLink to="/good">good</RouterLink>
      </nav>
<!--    </div>-->
    <RouterView />
  </header>

</template>

<style scoped>
header {
  background-color: #f8f9fa;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

nav a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #007bff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover {
  color: #0056b3;
  transform: scale(1.05);
}

nav a:hover::after {
  transform: scaleX(1);
}

main {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

</style>
